package com.mdd.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mdd.common.base.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;


@Data
@TableName("oms_product_type")
@ApiModel("商品类别实体")
@EqualsAndHashCode(callSuper = true)
public class ProductType extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value="id", type= IdType.AUTO)
    @ApiModelProperty(value = "编号")
    private Long id;

    @ApiModelProperty(value = "父类型")
    private Long pId;

    @ApiModelProperty(value = "类别名称")
    private String name;

    @ApiModelProperty(value = "编码")
    private String productTypeSn;
}
